@echo off
chcp 65001 >nul
echo ========================================
echo 微信聊天记录获取工具
echo ========================================
echo.

REM 检查Python是否安装
python --version >nul 2>&1
if errorlevel 1 (
    echo 错误: 未找到Python，请先安装Python
    pause
    exit /b 1
)

REM 检查依赖是否安装
echo Checking dependencies...
pip show itchat-uos >nul 2>&1
if errorlevel 1 (
    echo Installing dependencies...
    pip install -r requirements.txt
    if errorlevel 1 (
        echo Failed to install dependencies, please install manually
        pause
        exit /b 1
    )
)

echo Dependencies check completed
echo.
echo 正在启动程序...
python wxtxt.py

echo.
echo 程序执行完成
pause 